﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Conputer
    {
        private string brand;
        public string Brand { get => brand; set => brand = value; }
        internal MobStora Usb1 { get => usb1; set => usb1 = value; }
        internal MobStora Usb2 { get => usb2; set => usb2 = value; }

        private MobStora usb1;
        private MobStora usb2;

        public Conputer(string brand) 
        {
            this.brand = brand;
        }

        public void strat() 
        {
            Console.WriteLine("我是{0}品牌的电脑，开机中",this.brand); 
        }

        public void end()
        {
            Console.WriteLine("我是{0}品牌的电脑，关机中", this.brand);
        }

        public void Read() 
        {
            usb1.read();
            usb2.read();
        }
        public void Write() 
        {
            usb1.write();
            usb2.write();
        }

    }
}
